var  speed=200;
var  scroll_begin=document.getElementById("scroll_begin");
var  scroll_end=document.getElementById("scroll_end");
var  scroll_box=document.getElementById("scroll_box");


scroll_box.innerHTML=scroll_begin.innerHTML;

scroll_box.scrollLeft=0;

function  marquee() {
   if (scroll_box.scrollLeft>=scroll_end.offsetWidth){
       scroll_box.scrollLeft-=scroll_begin.offsetWidth;
   }else{
       scroll_box.scrollLeft
   }
}

setInterval(marquee,speed);

scroll_box.addEventListener(
    "mouseover",
    function () {
        clearInterval(flag);
    }
);
scroll_box.addEventListener(
    "mouseout",
    function () {
        clearInterval(flag);
    }
);